#include "os.h"

.extern kernel_loader, kernel_init

.code16
.text
.global _start
_start: 
	jmp kernel_loader

.code32
.text
.global protect_mode
protect_mode:
	mov $KERNEL_DATA_SEG, %ax
	mov %ax, %ds
	mov %ax, %ss
	mov %ax, %es
	mov %ax, %fs
	mov %ax, %gs
	jmp $KERNEL_CODE_SEG, $kernel_init